package com.tsingtao.springcloudproject1.controller;

import com.tsingtao.springcloudproject1.entity.Project1;
import com.tsingtao.springcloudproject1.service.TestSeataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/seata")
public class TestSeataController {

    @Autowired
    private TestSeataService testSeataService;

    @PostMapping("/insert")
    public int insert(@RequestBody Project1 project1) {
        return testSeataService.insert(project1);
    }

}
